import request from '@/utils/request'

export function getDynamicTableHead() {
  return request({
    url: '/statistics/tableHead',
    method: 'get'
  })
}

export function getStatisticsPage(sign, pageNum, pageSize, searchObj) {
  return request({
    url: '/statistics/page',
    method: 'post',
    data: searchObj,
    params: { sign, pageNum, pageSize }
  })
}

export function downloadStatistics(sign, searchObj) {
  return request({
    url: '/statistics/download',
    method: 'post',
    data: searchObj,
    params: { sign },
    responseType: 'blob'
  })
}

export function getSearchFormList() {
  return request({
    url: '/statistics/getSearchForm',
    method: 'get'
  })
}
